'''

题目：字符串排序。

程序分析：无。
实例(Python 2.0+)

'''
#!/usr/bin/python
# -*- coding: UTF-8 -*-

if __name__ == '__main__':
    str1 = input('input string:\n')
    str2 = input('input string:\n')
    str3 = input('input string:\n')
    print (str1,str2,str3)

    if str1 > str2 : str1,str2 = str2,str1
    if str1 > str3 : str1,str3 = str3,str1
    if str2 > str3 : str2,str3 = str3,str2

    print ('after being sorted.')
    print (str1,str2,str3)

'''
input string:
edrer
input string:
ere
input string:
ere
edrer ere ere
after being sorted.
edrer ere ere


'''









